import MoviesView from "../../modules/movies/moivesView.js";
import MoviesAdd from "../../modules/movies/moivesAdd.js";
import MoviesUpdate from "../../modules/movies/moivesUpdate.js";

export default {
    //显示所有电影列表
    "/showmovies": {
        on: () => {
            new MoviesView("app");// 显示电影列表  
        }
    },

    //添加电影
    "/addmovies": {
        on: () => {
            new MoviesAdd("app");
        }
    },

    //修改电影
    "/updatemovies/:moviesId": {
        on: (id) => {
            new MoviesUpdate("app",id);
        }
    },
}